<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>订单记录</title>
    <link rel="stylesheet" href="../../layui-v2.6.8/layui/css/layui.css">
    <script type="text/javascript" src="../../layui-v2.6.8/layui/layui.js"></script>
</head>
<body>
<table id="ordersRecord" lay-filter="test"></table>
<script>
    layui.use(['table','layer'],function (){
        var table = layui.table;
        var cid = sessionStorage.getItem("cid");

        table.render({
            elem: '#ordersRecord'
            ,url: 'http://localhost:8080/queryByCid?cid='+cid
            ,cols: [[
            , {field: 'acontact', title: '寄件人'}
            , {field: 'aphone', title: '寄件人电话'}
            , {field: 'address', title: '寄件人地址'}
            , {field: 'acontact2', title: '收件人'}
            , {field: 'aphone2', title: '收件人电话'}
            , {field: 'address2', title: '收件人地址'}
            , {field: 'kind', title: '货物类别'}
            , {field: 'unitprice', title: '单价'}
            , {field: 'pweight', title: '重量'}
            , {field: 'psum', title: '运费'}
            , {field: 'otime', title: '下单时间'}
            , {field: 'tip', title: '留言'}
        ]]
        });
    });
</script>
</body>
</html>